import { Component, OnInit } from '@angular/core';
import { AppserService } from '../../../appser.service';
import { from } from 'rxjs';

@Component({
  selector: 'app-test1-a',
  templateUrl: './test1-a.component.html',
  styleUrls: ['./test1-a.component.scss']
})
export class Test1AComponent implements OnInit {

  constructor(
    private appserService: AppserService,
  ) { }

  ngOnInit() {
    console.log('appser-a 打印', this.appserService.testMsg);
    this.appserService.testMsg = 'test1-a 修改了值';
  }

}
